package com.example.myapplication10;

import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class HomeActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);

        Button btnQuickTest = findViewById(R.id.btnQuickTest);
        Button btnBookConsultation = findViewById(R.id.btnBookConsultation);
        Button btnBrowseBooks = findViewById(R.id.btnBrowseBooks);

        btnQuickTest.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(HomeActivity.this, TestsActivity.class));
            }
        });

        btnBookConsultation.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(HomeActivity.this, BookingActivity.class));
            }
        });

        btnBrowseBooks.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(HomeActivity.this, BooksActivity.class));
            }
        });
    }
}